// 组织架构相关接口
import request from '@/utils/request'

// 组织架构 -> 获取所有列表
export const getTissueList = () => request({
  url: '/company/department'
})

// 组织架构 -> 删除对应部门
export const removeSection = id => request({
  url: `/company/department/${id}`,
  method: 'DELETE'
})

//  组织架构 -> 新增部门
export const addDepartment = (data) => request({
  url: '/company/department',
  method: 'POST',
  data
})

// 组织架构 -> 查询对应部门信息
export const getDepartmentInformation = id => request({
  url: `/company/department/${id}`
})

// 组织架构 -> 修改对应部门信息
export const reviseSectionInfo = data => request({
  url: `/company/department/${data.id}`,
  method: 'PUT',
  data
})
